<?php     

echo form_open(current_url()); ?>
<?php echo $custom_error; ?>
<?php echo form_hidden('ID_USER',$result->ID_USER) ?>
                           
<input id="ID_ANGGOTA" type="hidden" name="ID_ANGGOTA" value="<?php echo $result->ID_ANGGOTA ?>"  />
<?php echo form_error('ID_ANGGOTA','<div>','</div>'); ?>
</p>


<p><label for="USERNAME">USERNAME<span class="required">*</span></label>                                
<input id="USERNAME" type="text" name="USERNAME" value="<?php echo $result->USERNAME ?>"  />
<?php echo form_error('USERNAME','<div>','</div>'); ?>
</p>


<p><label for="PASSWORD">PASSWORD<span class="required">*</span></label>                                
<input id="PASSWORD" type="text" name="PASSWORD" value=""  />
<?php echo form_error('PASSWORD','<div>','</div>'); ?>
</p>


<p><label for="ROLE">ROLE<span class="required">*</span></label>                                
<select name="ROLE">
	<option <?php echo ($result->ROLE == 1) ? ("selected") : (""); ?> value="1">Admin</option>
	<option <?php echo ($result->ROLE == 2) ? ("selected") : (""); ?> value="2">User</option>
</select>
<?php echo form_error('ROLE','<div>','</div>'); ?>
</p>
                                    
<p>
        <?php echo form_submit( 'submit', 'Submit',array("class"=>"primary")); ?>
</p>

<?php echo form_close(); ?>
